import pytest

from utils.get_logger import GetLog

log = GetLog.get_logger()


def common_assert(response, expectation):
    assert response.status_code == expectation["status_code"]
    res = response.json()
    assert res["code"] == expectation["code"]